home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVKESC.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  30 lines

  1. /*================================================*/
  2. /* TVKESC.C                                       */
  3. /*                                                */
  4. /* (c) Copyright 1988 Ralf Brown                  */
  5. /*     All Rights Reserved                        */
  6. /* May be freely copied for noncommercial use,    */
  7. /* provided that this copyright notice remains    */
  8. /* intact and any changes are indicated in the    */
  9. /* comment blocks preceding functions             */
  10. /*================================================*/
  11.  
  12. #include "tvapi.h"
  13.  
  14. /*================================================*/
  15. /* TVkbd_setesc  define function to filter keys   */
  16. /*               in field mode (0 == none)        */
  17. /*   Ralf Brown 4/23/88                           */
  18. /*================================================*/
  19.  
  20. void pascal TVkbd_setesc(OBJECT kbd,void far (*func)(void))
  21. {
  22.    PARMLIST1 p ;
  23.  
  24.    p.num_args = 1 ;
  25.    p.arg[0] = (DWORD) func ;
  26.    TVsendmsg(SETESC_MSG, kbd?TOS:KEYME, kbd, (PARMLIST *)&p) ;
  27. }
  28.  
  29. /* End of TVKESC.C */
  30.